<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center system_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub system_fd0_0'>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
					<text class='fu-iconfont2  system_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-stretch justify-center flex-sub'>
					<text class='system_fd0_0_c1_c0'>安全设置</text>
				</view>
				<view class='flex flex-wrap align-center system_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		
		<!---基本设置flex布局开始-->
		<view class="flex flex-direction flex-wrap align-stretch system_flex_1">
			<view class='flex flex-direction flex-wrap align-stretch'>
				<view class='flex flex-wrap align-center justify-between system_fd1_0_c0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/xtsz/cardAndSafe/cardAndSafe`">
					<text class='system_fd1_0_c0_c0'>账号与安全</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
				<view class='flex flex-wrap align-center justify-between system_fd1_0_c0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/xtsz/iNeedFeedback/iNeedFeedback`">
					<text class='system_fd1_0_c0_c0'>意见反馈</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
				<view class='flex flex-wrap align-center justify-between system_fd1_0_c0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/xtsz/setBlacklist/setBlacklist`">
					<text class='system_fd1_0_c0_c0'>黑名单设置</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
				<view class='flex flex-wrap align-center system_fd1_0_c3'>
				</view>
			</view>
			<view class='flex flex-direction flex-wrap align-stretch system_fd1_1'>
				<view class='flex flex-wrap align-center justify-between system_fd1_1_c0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/xtsz/aboutUs/aboutUs`">
					<text class='system_fd1_0_c0_c0'>关于我们</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
				<view class='flex flex-wrap align-center justify-between system_fd1_1_c0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/dlzc/conceal/conceal?type=1`">
					<text class='system_fd1_0_c0_c0'>用户注册协议</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>

				<!-- <view class='flex flex-wrap align-center justify-between system_fd1_1_c0' v-if="isios==true">
					<text class='system_fd1_0_c0_c0'>版本号</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>{{banben}}&#xE7F2;</text>
				</view> -->
				<view class='flex flex-wrap align-center justify-between system_fd1_1_c0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/dlzc/conceal/conceal?type=2`">
					<text class='system_fd1_0_c0_c0'>隐私政策</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
			</view>
			<view class='flex flex-wrap align-center system_fd1_2'>
			</view>
			<view class='flex flex-direction flex-wrap align-stretch system_fd1_1'>
				<view class='flex flex-wrap align-center system_fd1_1_c0' @tap.stop="cleanUpFunc()">
					<text class='system_fd1_0_c0_c0'>清除缓存</text>
					<text class='system_fd1_3_c0_c1'>{{appRubbishCacheSize}}</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
				<view class='flex flex-wrap align-center system_fd1_3_c1' @tap.stop="updataFunc()">
					<text class='system_fd1_0_c0_c0'>检查更新</text>
					<text class='system_fd1_3_c0_c1'>{{appVersion}}</text>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
			</view>
		</view>

		<!---基本设置flex布局结束-->
		<view class="flex flex-wrap align-center justify-center benben-position-layout flex system_flex_2"
			@tap.stop="popupShow1681268717363=true">
			<button class='flex-sub system_fd2_0'>退出登录</button>

		</view>
		<view :style="{height: '110rpx'}"></view>
		<benben-popup v-model="popupShow1681268717363" :mask="true" mode='center'>
			<view class="flex flex-direction flex-wrap align-center system_flex_3">
				<text class='system_fd3_0'>提示</text>
				<text class='system_fd3_1'>确定退出当前账号？</text>
				<view class='flex flex-wrap align-center system_fd3_2'>
					<button class='system_fd3_2_c0' @tap.stop="popupShow1681268717363=false">取消</button>
					<button class='system_fd3_2_c1' @tap.stop="logOutFunc()">确定</button>
				</view>
			</view>
		</benben-popup>
		<!---清除本地缓存flex布局开始-->
		<benben-popup v-model="popupShow1681269217031" :mask="true" mode='center'>
			<view class="flex benben-flex-layout flex-wrap align-center">
				<view class='flex flex-direction flex-wrap align-center system_fd4_0'>
					<text class='system_fd4_0_c0'>提示</text>
					<text class='system_fd4_0_c1'>确定要清除本地缓存？</text>
					<view class='flex flex-wrap align-center system_fd4_0_c2'>
						<button class='system_fd4_0_c2_c0' @tap.stop="popupShow1681269217031=false">取消</button>
						<button class='system_fd4_0_c2_c1' @tap.stop="cleanUpFunc()">确认</button>
					</view>
				</view>
			</view>
		</benben-popup>
		<!---清除本地缓存flex布局结束-->
		<app-update ref="update"></app-update>

	</view>
</template>
<script>
	
	export default {
		components: {
			
		},


		data() {
			return {
				"popupShow1681269217031": false,
				"popupShow1681268717363": false,
				pingtai: '',
				banben: '',
				isios: false
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			appVersion() {
				// 获取版本号
				return this.$store.state.appVersion
			},
			appRubbishCacheSize() { // 获取缓存大小
				return this.$store.state.appRubbishCacheSize
			}
		},
		watch: {},
		onLoad(options) {
			// uni.getSystemInfo({
			// 	success: res => {
			// 		const pingtai = res.platform;
			// 		const banben = res.appVersion
			// 		console.log(res, 'res')
			// 		this.pingtai = pingtai
			// 		this.banben = banben
			// 		if (this.pingtai == 'ios') {
			// 			this.isios = true
			// 		} else {
			// 			this.isios = false
			// 		}
			// 	}
			// });
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.$store.dispatch('getAppVersion') // 更新版本号
			this.$store.dispatch('getAppCache') // 更新缓存大小
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			handle() {
				uni.switchTab({
					url: '/pages/tabBar/my/my'
				})
			},
			//退出登录
			logOutFunc() {
				this.tim.logout();
				this.$store.commit('logout');
				// #ifdef APP-PLUS
				this.TUICallKit.logout();
				// #endif
				uni.reLaunch({
					url: '/pages/tabBar/login/login'
				})
			},
			//清除缓存
			cleanUpFunc() {
				// this.popupShow1681269217031 = false;
				this.$store.dispatch('appClearCache');
			},
			//APP更新
			updataFunc() {
				this.$util.debounce(
					() => {
						this.$refs.update.checkAppUpdate()
					},
					1000,
					true
				)
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: var(--benbenbgColor1);
		background-size: 100% auto !important;
	}

	.system_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.system_fd0_0_c2 {
		width: 32rpx;
		height: 32rpx;
	}

	.system_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.system_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.system_fd0_0 {
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.system_flex_1 {
		background: #fff;
		font-size: 32rpx;
		background-size: 100% auto !important;
	}

	.system_fd1_3_c1 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.system_fd1_3_c0_c1 {
		font-size: 28rpx;
		color: rgba(191, 191, 191, 1);
		margin: 0rpx 24rpx 0rpx auto;
	}

	.system_fd1_2 {
		background: rgba(248, 248, 248, 1);
		height: 20rpx;
		background-size: 100% auto !important;
	}

	.system_fd1_1_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.system_fd1_1 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.system_fd1_0_c3 {
		background: var(--benbenbgColor1);
		height: 20rpx;
		background-size: 100% auto !important;
	}

	.system_fd1_0_c0_c1 {
		font-size: 26rpx;
		color: rgba(191, 191, 191, 1);
	}

	.system_fd1_0_c0_c0 {
		font-size: 32rpx;
	}

	.system_fd1_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.system_flex_2 {
		width: 750rpx;
		height: 110rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
	}

	.system_fd2_0 {
		background: var(--benbenbgColor0);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		font-size: 32rpx;
		color: var(--benbenFontColor1);
		height: 110rpx;
		line-height: 110rpx;
		font-weight: 500;
		width: 750rpx;
	}

	.system_flex_3 {
		background: #fff;
		width: 540rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.system_fd3_2_c1 {
		border-top: 1px solid #eee;
		border-left: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: rgba(0, 0, 0, 1.0);
		width: 270rpx;
	}

	.system_fd3_2_c0 {
		border-top: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		padding: 0rpx 103rpx 0rpx 103rpx;
	}

	.system_fd3_2 {
		margin: 37rpx 0rpx 0rpx 0rpx;
	}

	.system_fd3_1 {
		line-height: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
	}

	.system_fd3_0 {
		font-size: 36rpx;
		font-weight: 800;
		line-height: 44rpx;
		color: #333333;
		margin: 40rpx 0rpx 40rpx 0rpx;
	}

	.system_fd4_0_c2_c1 {
		background: #fff;
		font-size: 32rpx;
		color: rgba(0, 0, 0, 1.0);
		width: 270rpx;
		height: 101rpx;
		line-height: 101rpx;
		font-weight: 500;
	}

	.system_fd4_0_c2_c0 {
		border-right: 1px solid #eee;
		background: #fff;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		width: 270rpx;
		height: 101rpx;
		line-height: 101rpx;
		font-weight: 400;
	}

	.system_fd4_0_c2 {
		border-top: 1px solid #eee;
		margin: 51rpx 0rpx 0rpx 0rpx;
	}

	.system_fd4_0_c1 {
		line-height: 44rpx;
		font-size: 28rpx;
		font-weight: 500;
		color: #333333;
		text-align: center;
		margin: 32rpx 40rpx 0rpx 40rpx;
	}

	.system_fd4_0_c0 {
		line-height: 44rpx;
		font-size: 36rpx;
		font-weight: 700;
		color: #333333;
		margin: 40rpx 0rpx 0rpx 0rpx;
	}

	.system_fd4_0 {
		background: #fff;
		width: 540rpx;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}
</style>